<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">

  <title>Message</title>
  <!-- Bootstrap core CSS -->
  <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
  <!--top icon-->
  <link rel="shortcut icon" th:href="@{/ChongYouIcon.ico}" type="image/x-icon"/>
  <!-- Custom styles for this template -->
  <link th:href="@{/css/dashboard.css}" rel="stylesheet">
  <style type="text/css">
    /* Chart.js */

    @-webkit-keyframes chartjs-render-animation {
      from {
        opacity: 0.99
      }
      to {
        opacity: 1
      }
    }

    @keyframes chartjs-render-animation {
      from {
        opacity: 0.99
      }
      to {
        opacity: 1
      }
    }

    .chartjs-render-monitor {
      -webkit-animation: chartjs-render-animation 0.001s;
      animation: chartjs-render-animation 0.001s;
    }
  </style>
</head>

<body>
<!--导航栏-->
<div th:replace="~{common/common::topbar}"></div>
<div class="container-fluid">
  <div class="row">
    <!--侧边栏-->
    <div th:replace="~{common/common::sidebar(active='reply')}"></div>

    <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
      <h2>Reply to me</h2>
      <hr>
      <!--评论和回复的切换-->
      <div th:replace="~{common/common::bar(act='comments')}"></div>

      <div th:each="index:${#numbers.sequence((comments.length)-1,0,-1)}">
        <div style="display: flex">
          <h4><b th:text="'@'+${comments[index].fromId}"></b></h4>
        </div>
        <p class="lead" th:text="${comments[index].content}"></p>
        <p th:text="${#dates.format(comments[index].time,'yyyy-MM-dd HH:mm:ss')}" style="color: #6c757d"></p>

          <div style="background-color:#EEEEEE;width: 70%;padding: 10px" th:with="i=${comments[index].qid}">
            <div style="display: flex">
              <h6  th:text="'@'+${questions[i].postId}"></h6>
            </div>
            <div style="margin-top: 7px">
              <h6><p th:text="${questions[i].question}"></p></h6>
            </div>
              <div >
                <p  th:text="${#dates.format(questions[i].postDate,'yyyy-MM-dd HH:mm:ss') }" style="color: #6c757d"></p>
                <div><a style="font-size: 20px" th:href="@{'/detailing?postId='+${questions[i].postId}+'&question='+${questions[i].question}+'&date='+${#dates.format(questions[i].postDate,'yyyy-MM-dd HH:mm:ss')}+'&qid='+${questions[i].id}}">more details</a></div>
              </div>

          </div>
        <hr>

      </div>

    </main>
  </div>

</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" th:src="@{js/jquery-3.2.1.slim.min.js}"></script>
<script type="text/javascript" th:src="@{js/popper.min.js}"></script>
<script type="text/javascript" th:src="@{js/bootstrap.min.js}"></script>





</body>

</html>